package com.td.module.farmer.controller.admin.management.vo;

import com.td.framework.common.pojo.PageParam;
import com.td.framework.desensitize.core.slider.annotation.IdCardDesensitize;
import com.td.framework.desensitize.core.slider.annotation.MobileDesensitize;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@ApiModel("管理后台 - 农户土地信息分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class ManagementPageReqVO extends PageParam {

    @ApiModelProperty(value = "主键id", required = true, example = "27856")
    private Long id;

    @ApiModelProperty(value = "农户编码")
    private String farmerCode;

    @ApiModelProperty(value = "农户姓名", example = "赵六")
    private String name;

    @ApiModelProperty(value = "身份证号码")
    @IdCardDesensitize
    private String certificateCode;

    @ApiModelProperty(value = "手机号")
    @MobileDesensitize
    private String mobile;

    @ApiModelProperty(value = "所种农产品类型", example = "2")
    private Integer agroProductType;

    @ApiModelProperty(value = "地块总个数")
    private Integer landNum;

    @ApiModelProperty(value = "地块总面积")
    private BigDecimal landArea;

    @ApiModelProperty(value = "土地类型", example = "1")
    private Integer landType;

    @ApiModelProperty(value = "创建时间", required = true)
    private LocalDateTime createTime;
}
